<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>right</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>

</head>
<script>
	function deletes(n){
		var fun = "del";
		$.ajax({
			async:false,
			type:"POST",
			url:"__APP__/Type/listrent/",
			data:"r_id="+n+"&fun="+fun,
			success:function(msg){
				if(msg=='1'){
					$("#obj_"+n).hide();
				}else{
					alert("删除失败");
				}
			}
		});
	}

	function updates(n){
		var fun = "updates";
		$.ajax({
			async:false,
			type:"POST",
			url:"__APP__/Type/listrent/",
			data:"r_id="+n+"&fun="+fun,
			success:function(msg){
				$("#container").html(msg);
			}
		});
	}
</script>
<body>

<div id="container">
  <div id="main"> 
    <div id="content"> 
      <div class="weizhi"><span>当前位置：区域列表</span></div>
	<br><br><br><br>
		<table>
			<tr>
				<td>名称</td>
				<td>操作</td>
			</tr>
			<volist name="rent" id="vo">
			<tr id="obj_<{$vo.r_id}>">
				<td><{$vo.r_name}></td>
				<td><a href="#" onclick="deletes(<{$vo.r_id}>)">删除</a>|<a href="#" onclick="updates(<{$vo.r_id}>)">修改</a></td>
			</tr>
			</volist>
		</table>

	</div>
	</div>
</div>
</body>
</html>





